package com.yz.platform.common.base;


import com.yz.platform.modules.sys.entity.SysUserEntity;

import javax.servlet.http.HttpServletRequest;

/**
 * author:lin Date : 2017/9/7 下午2:26
         */
public class BaseController {


    /**
     * 获取当前用户
     * @param request
     * @return
     */
    protected SysUserEntity currentUser(HttpServletRequest request){

        return (SysUserEntity)request.getSession().getAttribute("currentUser");

    }




}
